#include "model.h"
#include "model_link.h"

Model_link::Model_link()
{
  _source = NULL;
  _active = false;
}

Model_link::~Model_link()
{
}

void Model_link::set_source( Model *m )
{
  _source = m;
}

void Model_link::add_target( Model *m )
{
  _targets.push_back( m );
}


void Model_link::activate( void )
{
  _active = true;
}

void Model_link::deactivate( void )
{
  _active = false;
}

Model *Model_link::get_source(void)
{
  return _source;
}

bool Model_link::is_active( void )
{
  return _active;
}


